<?php

class Application_Model_House extends Application_Model_RealEstate
{

	protected $_houseId;
	protected $_room;
	protected $_yard;
	protected $_pool;
	protected $_garage;
	protected $_balcony;
	
	
	public function getAttribs()
	{
		$attribs = array(
				'name'		=> $this->getName(),
				'description'		=> $this->getDescription(),
				'url'			=> $this->getUrl(),
				'images'		=> $this->getImages(),
				'surface'		=> $this->getSurface(),
				'room' 		=> $this->getRoom(),
				'yard'		=> $this->getYard(),
				'pool'		=> $this->getPool(),
				'garage'	=> $this->getGarage(),
				'balcony'	=> $this->getBalcony(),
				);
		return $attribs;
	}
	/**
	 * @return the $_houseId
	 */
	public function getHouseId() {
		return $this->_houseId;
	}

	/**
	 * @return the $_room
	 */
	public function getRoom() {
		return $this->_room;
	}

	/**
	 * @return the $_yard
	 */
	public function getYard() {
		return $this->_yard;
	}

	/**
	 * @return the $_pool
	 */
	public function getPool() {
		return $this->_pool;
	}

	/**
	 * @return the $_garage
	 */
	public function getGarage() {
		return $this->_garage;
	}

	/**
	 * @return the $_balcony
	 */
	public function getBalcony() {
		return $this->_balcony;
	}

	/**
	 * @param field_type $_houseId
	 */
	public function setHouseId($_houseId) {
		$this->_houseId = $_houseId;
	}

	/**
	 * @param field_type $_room
	 */
	public function setRoom($_room) {
		$this->_room = $_room;
	}

	/**
	 * @param field_type $_yard
	 */
	public function setYard($_yard) {
		$this->_yard = $_yard;
	}

	/**
	 * @param field_type $_pool
	 */
	public function setPool($_pool) {
		$this->_pool = $_pool;
	}

	/**
	 * @param field_type $_garage
	 */
	public function setGarage($_garage) {
		$this->_garage = $_garage;
	}

	/**
	 * @param field_type $_balcony
	 */
	public function setBalcony($_balcony) {
		$this->_balcony = $_balcony;
	}

	/**
	 * return the texte for the HTML view
	 * @return string
	 */
	public function getPoolRender(){
		return ($this->_pool) ? "Pool" : "";
	}
	
	/**
	 * return the texte for the HTML view
	 * @return string
	 */
	public function getGarageRender(){
		return ($this->_garage) ? "Garage" : "";
	}
	
	/**
	 * return the texte for the HTML view
	 * @return string
	 */
	public function getYardRender(){
		return ($this->_yard) ? "Yard" : "";
	}

	/**
	 * return the texte for the HTML view
	 * @return string
	 */
	public function getBalconyRender(){
		return ($this->_balcony) ? "Balcony" : "";
	}

}